package com.yaoxian.api.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
	* @author YaoXian
	* @title: TestController
	* @projectName 微服务项目架构
	* @description: TODO
	* @date 2020-07-07 14:24
	*/
@RestController
public class TestController {
		
		@Value("${name}")
		private String name;
		
		@RequestMapping(path = "/getName")
		public String getPropertiesValue(){
				return name;
		}
}
